/* 文本编辑器样式 */
.text-editor {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 20px;
}
  
.editor-header {
    display: flex;
    /* align-items: center; */
    gap: 10px;
    /* margin-bottom: 15px; */
    height: fit-content;
}

button {
    height: 40px;
    font-size: medium;
    white-space: nowrap;
    width: fit-content;
}

.file-name-input {
    /* flex: 1; */
    height: 40px;
    font-size: 1.2em;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
  
.editor-content {
    flex: 1;
    padding: 15px;
    font-family: monospace;
    font-size: 1em;
    line-height: 1.5;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
}
  
.editor-status {
    margin-top: 10px;
    font-size: 0.9em;
    /* color: #666; */
    /* text-align: right; */
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.editor-status #error{
    color:red;
    text-decoration-line: underline;
    justify-content: center;
}

#save{
    background-color: silver;
    text-decoration-line:underline;
    text-shadow: 2px 1px 2px rgb(212, 253, 7);
    color:rgb(4, 66, 120)
}

#save:disabled{
    cursor: not-allowed;
    opacity: 0.7;
    text-decoration-line: line-through;
}

#back{
    background-color: darkslateblue;
    color: white;
    text-shadow: 2px 1px 2px black;
    text-decoration-line: overline;
}